import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import App from '../App.vue'
import Index from '../views/Index.vue'
import PageOne from "../views/PageOne";
Vue.use(VueRouter)
const routes = [
  {
    path: '/',
    name: '查看值班表',
    redirect:'/PageOne',
    component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue'),
    children:[
      {
        path: '/PageZero',
        name: '昨天',
        component: () => import(/* webpackChunkName: "about" */ '../views/PageZero.vue')
      },
      {
        path: '/PageOne',
        name: '今天',
        component: () => import(/* webpackChunkName: "about" */ '../views/PageOne.vue')
      },
      {
        path: '/PageTwo',
        name: '一周前',
        component: () => import(/* webpackChunkName: "about" */ '../views/PageTwo.vue')
      }
    ]
  },
  {
    path: '/navigation',
    name: '修改值班表',
    component: () => import(/* webpackChunkName: "about" */ '../views/Index.vue'),
    children:[
      {
        path: '/PageThree',
        name: '添加',
        component: () => import(/* webpackChunkName: "about" */ '../views/PageThree.vue')
      },
      {
        path: '/PageFour',
        name: '修改',
        component: () => import(/* webpackChunkName: "about" */ '../views/PageFour.vue')
      },
      {
        path:'/Update',
        name: '修改框',
        component: () => import(/* webpackChunkName: "about" */ '../views/Update.vue')
      },
      // {
      //   path:'/Test',
      //   name: '测试',
      //   component: () => import(/* webpackChunkName: "about" */ '../views/Test.vue')
      // },

    ]
  }



]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
